package com.patterns.strategy.liuBeiQuqi;

/**
 * Created by Xiao Yiyun on 2017/5/30.
 * 锦囊
 */
public class Context {
    //构造函数，你要使用哪个妙计
    private IStrategy strategy;
    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }
    //使用计谋，看我出招啦
    public void operate() {
        this.strategy.operate();
    }
}
